<?php

namespace app\index\validate;

use think\Validate;

class CreateFarm extends Validate
{
    protected $rule=[
        'name'=>'require',
        'user_name'=>'require',
        'phone'=>'require',
    ];

    protected $message=[
        'user_name.require'=> '缺少管理员名称user_name',
        "name.require"=>"缺少农场姓名name",
        "phone.require"=>"缺少电话号码phone"
    ];

}